package com.wodsy.phoenix.dataobject.goodsc.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * TbGoodsRecommended entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "tb_goods_recommended", catalog = "goodsc")
public class GoodsRecommended implements java.io.Serializable {

	// Fields
	private static final long serialVersionUID = 1L;
	
	private Integer id;
	private Integer shopId;			//店铺id
	private Integer weight;			//展示的位置权重
	private Integer goodsId;			//商品id
	private Date addTime;			//添加时间
	private Date updateTime;		//修改时间

	// Constructors

	/** default constructor */
	public GoodsRecommended() {
	}

	/** minimal constructor */
	public GoodsRecommended(Integer shopId, Integer weight, Integer goodsId,
			Date addTime) {
		this.shopId = shopId;
		this.weight = weight;
		this.goodsId = goodsId;
		this.addTime = addTime;
	}

	/** full constructor */
	public GoodsRecommended(Integer shopId, Integer weight, Integer goodsId,
			Date addTime, Date updateTime) {
		this.shopId = shopId;
		this.weight = weight;
		this.goodsId = goodsId;
		this.addTime = addTime;
		this.updateTime = updateTime;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "increment")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "shop_id", nullable = false)
	public Integer getShopId() {
		return this.shopId;
	}

	public void setShopId(Integer shopId) {
		this.shopId = shopId;
	}

	@Column(name = "weight", nullable = false)
	public Integer getWeight() {
		return this.weight;
	}

	public void setWeight(Integer weight) {
		this.weight = weight;
	}

	@Column(name = "goods_id", nullable = false)
	public Integer getGoodsId() {
		return this.goodsId;
	}

	public void setGoodsId(Integer goodsId) {
		this.goodsId = goodsId;
	}

	@Column(name = "add_time", nullable = false, length = 19)
	public Date getAddTime() {
		return this.addTime;
	}

	public void setAddTime(Date addTime) {
		this.addTime = addTime;
	}

	@Column(name = "update_time", length = 19)
	public Date getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

}